void npc(Player @player, NPC @npc) {
	int state = npc.getState();
	if(state == 0) {
		if(player.getJob() == 110 || player.getJob() == 120 || player.getJob() == 130) {
			if(player.getLevel() >= 70) {
				npc.addText("Who are you? Hmm, you show experience and expertise. Do you want to be stronger?");
				npc.sendYesNo();
			}
			else {
				npc.addText("You must be level 70.");
				npc.sendOK();
				npc.end();
			}
		}
	}
	else if(state == 1) {
		if(npc.getSelected() == YES) {
			npc.addText("Good luck on your journey!");
			npc.sendOK();
			if(player.getJob() == 120) {
				player.setJob(121);
			}
			if(player.getJob() == 110) {
				player.setJob(111);
			}
			if(player.getJob() == 130) {
				player.setJob(131);
			}
		}
		npc.end();
	}
	else if(state == 2){     
		if(player.getJob() == 111 || player.getJob() == 121 || player.getJob() == 131){
			if(player.getLevel() >= 120 && player.getStr() >= 200){
				npc.addText("Ah, welcome back. I see you have gotten stronger. Yes, do you want to take the 4th job advancement test?");
				npc.sendYesNo();
			}
			else{
				npc.addText("You're too weak. Come back when you're at least level 120 and have a minimum of 200 str.");
				npc.sendOK();
				npc.end();
			}
		}
	}
	else if(state == 3){
		if(npc.getSelected() == YES) {
			if(player.getJob() == 111 || player.getJob() == 121 || player.getJob() == 131) {
				npc.addText("Go meet Legor the Bishop in Minar Forest I If you want to find the path of becoming a greater warrior.");
				npc.sendOK();
			}
		} else {
			npc.end();
		}
	}
}